﻿@model EvincePayroll.Data.UserRoleData
@{
    ViewBag.Title = "UserRoleManager";
}
<script src="../../Scripts/Data_Table/jquery.dataTables.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {

        $('#roleId').change(function () {
            var roleId = $('#roleId').val();
            if (roleId != '') {
                $.get('/UserRole/_UserRoleManagerTable?roleId=' + roleId, function (data) {
                    $("#userRoleManagerTable").html(data);
                });
            }
        });
    });
</script>
<div class="grid_10" >
            <div class="box round first grid">
                <h2>Attendance</h2>
                <div class="block">
                @Html.DropDownListFor(m => m.UserRoleId, new SelectList(ViewBag.UserRoleList as System.Collections.IEnumerable, "UserRoleId", "UserRole"), "", new { id = "roleId", @class = "required" })                    
                 <br />
                   
                    <div id="userRoleManagerTable">
                    </div>
                </div>
            </div>
            
        </div>



